function calculateScore(lines, level, speed) {
    return Math.floor(lines * level * (1000 - speed) / 10)
}

// (1:990ms 2:800ms 3:600ms 4:400ms 5:200ms)
function getSpeedByLevel(level) {
    switch (level) {
        case 1:
            return 990
        case 2:
            return 800
        case 3:
            return 600
        case 4:
            return 400
        default:
            return 200
    }
}

export {
    calculateScore,
    getSpeedByLevel
}